﻿<%@ Page Language="vb" AutoEventWireup="false" CodeBehind="rss.aspx.vb" Inherits="Prototype.rss" %>

 <asp:Repeater id="rptRSS" runat="server">
  <HeaderTemplate>
    <rss version="2.0">
      <channel>
        <title>3D>Talk News!</title>
        <link>https://dlprototype.svn.codeplex.com/svn</link>
        <description>
          This is the syndication feed for 3D>Talk.
        </description>
  </HeaderTemplate>

  <ItemTemplate>
        <item>
          <title><%# FormatForXML(DataBinder.Eval(Container.DataItem,
                                              "Title")) %></title>
          <description>
             <%# FormatForXML(DataBinder.Eval(Container.DataItem, 
                                     "Description")) %>
          </description>
          <link>
             http://www.ASPNETNews.com/Story.aspx?ID=<%# 
                   DataBinder.Eval(Container.DataItem, "ArticleID") %>
          </link>
          <author><%# FormatForXML(DataBinder.Eval(Container.DataItem, 
                                             "Author")) %></author>
          <pubDate>
             <%# String.Format("{0:R}", 
                  DataBinder.Eval(Container.DataItem, 
                                         "DatePublished")) %>
           </pubDate>
        </item>
  </ItemTemplate>

  <FooterTemplate>
      </channel>
    </rss>  
  </FooterTemplate>
</asp:Repeater>
